set more off

use dataset, clear

keep if year == 2012 & overridep == 1

local myvars town population demvoteshare lagdemvoteshare dtaxbill
keep `myvars'
order `myvars'

format dem lagdem dtaxbill %20.02fc
format population %20.0fc
		
replace town = proper(town)

#delimit;
listtex 
	using "table A7.tex"
	,
		nolabel
		replace
		type 
		rstyle(tabular)
		head(
			"\begin{tabular}{lllll}\toprule""Town&Population
			&Dem Vote 2012&Dem Vote 2008&Change in Tax Bill\\
			\midrule"
		)
		foot("\bottomrule\end{tabular}");
#delimit cr
